package com.yuhong.springbootinit.model.dto.position;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yuhong.springbootinit.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 查询请求
 *
 * @author 任玉洪</a>

 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PositionQueryRequest extends PageRequest implements Serializable {

    /**
     * id
     */
    private Long id;

    /**
     * 职位的唯一id
     */
    private String positionId;

    /**
     * 职位名称
     */
    private String title;

    /**
     * 薪资
     */
    private Integer salary;

    /**
     * base地
     */
    private String location;

    /**
     * 哪届
     */
    private String gen;

    /**
     *  职位状态
     */
    private Integer status;


    /**
     * 标签列表
     */
    private List<String> tags;

    /**
     * 开放时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date startDate;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date endDate;



    /**
     * 创建用户 id
     */
    private String userId;



    private static final long serialVersionUID = 1L;
}